/**
 * 
 */
package com.java.test.user.dto;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.java.test.util.DateUtil;

/**
 * 3号消息
 *
 */
public class Message_3 implements RowMapper<Message_3> {

	// 主键id
	private int id;

	// 服務器编号
	private String serviceNumber;

	// 上报时间
	private String reportTime;

	// 链接数量
	private int connectCount;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getServiceNumber() {
		return serviceNumber;
	}

	public void setServiceNumber(String serviceNumber) {
		this.serviceNumber = serviceNumber;
	}

	public String getReportTime() {
		return reportTime;
	}

	public void setReportTime(String reportTime) {
		this.reportTime = reportTime;
	}

	public int getConnectCount() {
		return connectCount;
	}

	public void setConnectCount(int connectCount) {
		this.connectCount = connectCount;
	}

	public Message_3 mapRow(ResultSet rs, int rowNum) throws SQLException {

		Message_3 info = new Message_3();
		info.setId(rs.getInt("id"));
		info.setServiceNumber(rs.getString("serviceNumber"));
		info.setReportTime(DateUtil.convertTimeToString(rs.getLong("reportTime")));
		info.setConnectCount(rs.getInt("connectCount"));
		return info;

	}

}
